let WEEKDAY_MAPPER = {
  'monday': '周一',
  'tuesday': '周二',
  'wednesday': '周三',
  'thursday': '周四',
  'friday': '周五',
  'saturday': '周六',
  'sunday': '周日',
  [Symbol.iterator]: function * () {
    for (let item of Object.entries(this)) {
      yield {
        prop: '_tb_' + item[0],
        label: item[1]
      }
    }
  }
}

let COURSE_START_SCHEDULE = [
  '7:50', '8:40', '9:45', '10:35', '11:25', '13:50', '14:40', '15:45', '16:35', '17:25', '19:00', '19:50', '20:40'
]

let COURSE_END_SCHEDULE = [
  '8:35', '9:25', '10:30', '11:20', '12:10', '14:35', '15:25', '16:30', '17:20', '6:10', '19:45', '20:35', '21:25'
]

const columns = [
  {
    prop: '_tb_courseNum',
    label: '课时',
    align: 'right'
  },
  ...WEEKDAY_MAPPER
]

export default {
  columns,
  WEEKDAY_MAPPER,
  COURSE_END_SCHEDULE,
  COURSE_START_SCHEDULE
}
